﻿using System;
using System.Collections.Generic;
using System.Drawing.Imaging;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MCUPic.Core.Pic
{
    [Obsolete]
    public class PicConfig : IPicConverter, ICloneable
    {
        public Size _size;
        public Rectangle _cutRegion;
        public PixelFormat _pixelFormat;

        
        Size IPicConverter.Size { get => _size; set { _size = value; } }
        Rectangle IPicConverter.CutRegion { get => _cutRegion; set { _cutRegion = value; } }
        PixelFormat IPicConverter.PixelFormat { get => _pixelFormat; set { _pixelFormat = value; } }

        public PicConfig(int Output_Width, int Output_Hight, int cutPosX, int cutPosY)
        {
            _cutRegion.Width = Output_Width;
            _cutRegion.Height = Output_Hight;
            _cutRegion.X = cutPosX;
            _cutRegion.Y = cutPosY;
        }
        public PicConfig(Rectangle cutRegion)
        {
            _cutRegion = cutRegion;
        }

        public object Clone()
        {
            return new PicConfig(_cutRegion);
        }
    }
}
